import React from 'react';
import { Input } from 'antd';

const { Search } = Input;
const SearchInput = () => {
    const onSearch = async (v) => {
        v = v.trim();
        console.log(v)
    };

    return (
        <Search
            className='w250'
            placeholder="请输入"
            maxLength={100}
            allowClear
            onSearch={onSearch}
        />
    );
};

export default SearchInput;
